const {src, dest}  = require("gulp")
const less = require("gulp-less")
const rename = require("gulp-rename")
const clean = require("gulp-clean")

const style = () => {
  return src('./src/styles/*.less', {base: 'src'})
  .pipe(less())
  .pipe(rename({
    extname: ".min.css"
  }))
  .pipe(dest('./dist'))
}

const cls = () => {
  return src("./dist").pipe(clean())
}

module.exports = {
  style, cls
}